﻿using Newtonsoft.Json;

namespace Missbot.Model.MsgInfos
{
    public class MessagingMessageInfo : RootInfo
    {
        [JsonProperty("body")]
        public ChannelBody_MessagingMessage Body { get; set; }
    }

    public class ChannelBody_MessagingMessage : ChannelBody
    {
        [JsonProperty("body")]
        public MessagingMessageBody Body { get; set; }
    }

    public class MessagingMessageBody
    {
        [JsonProperty("id")]
        public string ID { get; set; }
        
        [JsonProperty("text")]
        public string Text { get; set; }
        
        [JsonProperty("user")]
        public InstanceUser User { get; set; }
        
        [JsonProperty("groupID")]
        public string GroupID { get; set; }
        
        [JsonProperty("file")]
        public InstanceFile File { get; set; }
    }
}